Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a compression cost optimization section to the Cosmos DB docs #4151

Merged
merged 4 commits into from
May 22, 2024

Conversation

KrylixZA
Copy link
Contributor

@KrylixZA KrylixZA commented May 18, 2024

Description

This PR adds further optimisations to the Cosmos DB state management, focusing on cost savings. The section breaks down how Cosmos DB RU/s are calculated and how developers can use compression algorithms to reduce the overall size of the object they are reading and writing to state and subsequently reduce the number of RU/s used. This is inspired by the work of my colleague who reduced our RU usage by 97% which he wrote about here: Maximizing Efficiency in Scalable Systems: Part I — Reducing costs of consumption-based state stores by up to 97% when using Dapr actors at scale

Issue reference

Closes #4047

@KrylixZA KrylixZA requested review from a team as code owners May 18, 2024 06:19
Copy link
Member

@msfussell msfussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the contribution @KrylixZA !

@msfussell msfussell merged commit e26f66e into dapr:v1.13 May 22, 2024
9 checks passed
@KrylixZA KrylixZA deleted the optimize-cosmosdb-costs branch May 26, 2024 12:23
salaboy pushed a commit to salaboy/docs that referenced this pull request Jun 21, 2024
…apr#4151)

* Adding a compression cost optimization section to the Cosmos DB documentation

Signed-off-by: Simon Headley <[email protected]>

* Reducing "and possibly more" from 2nd paragraph

Signed-off-by: Simon Headley <[email protected]>

---------

Signed-off-by: Simon Headley <[email protected]>
Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: salaboy <[email protected]>
@yaron2 yaron2 added this to the 1.14 milestone Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants